#include "../Hdr/Timer.h"
#include <SDL/SDL.h>

Eternal::Core::Timer::Timer()
{
	i_Ticks = 0;
}

Eternal::Core::Timer::~Timer()
{
	
}

void Eternal::Core::Timer::Start()
{
	i_Ticks = SDL_GetTicks();
}

void Eternal::Core::Timer::Stop()
{
	i_Ticks = 0;
}

unsigned int Eternal::Core::Timer::GetTicks() const
{
	return i_Ticks - SDL_GetTicks();
}

unsigned int Eternal::Core::Timer::GetSeconds() const
{
	return (i_Ticks - SDL_GetTicks()) / 1000;
}